import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listPart(query) {
  return request({
    url: '/wms/part/list', method: 'get', params: query
  })
}

// 查询【请填写功能名称】详细
export function getPart(id) {
  return request({
    url: '/wms/part/' + id, method: 'get'
  })
}

// 新增【请填写功能名称】
export function addPart(data) {
  return request({
    url: '/wms/part', method: 'post', data: data
  })
}

// 修改【请填写功能名称】
export function updatePart(data) {
  return request({
    url: '/wms/part', method: 'put', data: data
  })
}

// 删除【请填写功能名称】
export function delPart(id) {
  return request({
    url: '/wms/part/' + id, method: 'delete'
  })
}

export function getMaterialType() {
  return request({
    url: '/wms/part/get_material_type', method: 'post'
  })
}

export function getStatus1() {
  return request({
    url: '/wms/part/get_part_status1', method: 'post'
  })
}

export function getStatus2() {
  return request({
    url: '/wms/part/get_part_status2', method: 'post'
  })
}

export function getStation(line) {
  return request({
    url: '/wms/part/get_station?line=' + line, method: 'post'
  })
}

export function getProductLine() {
  return request({
    url: '/wms/part/get_product_line', method: 'post'
  })
}

export function printByIds(ids) {
  return request({
    url: '/wms/zebra/' + ids, method: 'post'
  })
}
